import request from '@/utils/http';

// 查询用户接收/发布列表
export function getFriends() {
  return request({
    url: '/api/dood-user/friends',
    method: 'get',
  });
}

export function getRootOrg() {
  return request({
    url: '/api/dood-organization/root',
    method: 'get',
  });
}
export function getUserGroups() {
  return request({
    url: '/api/dood-groups',
    method: 'get',
  });
}

export function getDodoSons(params) {
  return request({
    url: '/api/dood-organization/sons',
    method: 'get',
    params,
  });
}

export function getOrgFriend(params) {
  return request({
    url: '/api/dood-user',
    method: 'get',
    params,
  });
}

export function operateNotices(data) {
  return request({
    url: '/api/notices',
    method: 'post',
    data,
  });
}

